package cn.njxzc.examples;

class A2 {
	void print() {
		System.out.println("This is a superclass");
	}
}

class B2 extends A2 {
	void print() {
		System.out.println("This is a subclass");
		super.print();
	}
}

class Exam3_19 {

	public static void main(String[] args)

	{

		A2 a = new A2();
		a.print();
		B2 b = new B2();
		b.print();
	}

}